﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Top.PointStore.Business
{
    /// <summary>
    /// 商品展示
    /// </summary>
    public class T_ProductShow
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Kid { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public int F_ProductKid { get; set; }
        /// <summary>
        /// 兑换规则id
        /// </summary>
        public int F_ExchangeRuleKid { get; set; }
        /// <summary>
        /// 展示名称
        /// </summary>
        public string F_ShowName { get; set; }
        /// <summary>
        /// 排序因子
        /// </summary>
        public int F_Sort { get; set; }
        /// <summary>
        /// 上架时间
        /// </summary>
        public DateTime F_AddedTime { get; set; }
        /// <summary>
        /// 下架时间
        /// </summary>
        public DateTime F_SoldoutTime { get; set; }
        /// <summary>
        /// 商品状态:0、下架，1、上架，2、失效
        /// </summary>
        public int F_Status { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime F_CreatedTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime F_UpdatedTime { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? F_DeletedTime { get; set; }
        /// <summary>
        /// 逻辑删除标示
        /// </summary>
        public int? F_IsDelete { get; set; }
    }

    public class T_ProductShowExpand : T_ProductShow
    {
        #region MyRegion

        /// <summary>
        /// 商品名
        /// </summary>
        public string F_ProductName { get; set; }
        /// <summary>
        /// 商品主图片
        /// </summary>
        public string F_PicUrl { get; set; }
        /// <summary>
        /// 缩略图
        /// </summary>
        public List<Thumb> Thumbs { get; set; }

        public List<T_ProductPic> T_ProductPic { get; set; }

        /// <summary>
        /// 商品说明
        /// </summary>
        public string F_Description { get; set; }
        /// <summary>
        /// 商品分类id
        /// </summary>
        public int F_CategoryKid { get; set; }

        #endregion


        #region MyRegion

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime F_BeginTime { get; set; }
        /// <summary>
        /// 结束结束
        /// </summary>
        public DateTime F_EndTime { get; set; }

        /// <summary>
        /// 兑换积分
        /// </summary>
        public int F_PointNum { get; set; }

        /// <summary>
        /// 规则状态:0禁用；1启用
        /// </summary>
        public int F_Disabled { get; set; }
        /// <summary>
        /// 状态：0、自动处理，1、审核处理
        /// </summary>
        public int RuleStatus { get; set; }
        /// <summary>
        /// 兑换类型：0、永久，1、每天
        /// </summary>
        public int F_ExchangeType { get; set; }
        /// <summary>
        /// 用户兑换次数
        /// </summary>
        public int F_UserExchangeNum { get; set; }
        /// <summary>
        /// 每日兑换数量
        /// </summary>
        public int F_ExchangeNum { get; set; }
        /// <summary>
        /// 每日兑换开始时间
        /// </summary>
        public string F_ExchangeBeginTime { get; set; }
        /// <summary>
        /// 每日兑换结束时间
        /// </summary>
        public string F_ExchangeEndTime { get; set; }


        #endregion

        /// <summary>
        /// 库存
        /// </summary>
        public int F_InventoryNum { get; set; }
        /// <summary>
        /// 当前兑换数量
        /// </summary>
        public int F_CurrentExchangeNum { get; set; }
        /// <summary>
        /// 上架数量
        /// </summary>
        public int F_StockNum { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public string F_Source { get; set; }

        /// <summary>
        /// 状态 0、商品充足 1、库存紧张  2、已兑换完 3、积分不够 4 该经纪人不存在
        /// </summary>
        public int IsStutas { get; set; }

        /// <summary>商品状态:0、下架，1、上架，2、失效
        /// </summary>
        public int IsButton { get; set; }

        /// <summary>
        /// 是否参与秒杀
        /// </summary>
        public int F_IsMeskill { get; set; }

        public decimal F_ProductPrice { get; set; }
    }

    public class T_ProductShowExpandV2 : T_ProductShowExpand
    {

        /// <summary>
        /// 兑换数量
        /// </summary>
        public int ExchangeNum { get; set; }
    
    }

    public class T_ProductShowExpandV3 : T_ProductShowExpand
    {

        /// <summary>
        /// 规则状态：0、自动处理，1、审核处理
        /// </summary>
        public int F_ExchangeStatus { get; set; }

        /// <summary>
        /// 是否开启兑换规则：0、关闭，1、开启
        /// </summary>
        public int F_IsExchange { get; set; }

        public int F_CityKid { get; set; }

        public int ExchangeNum { get; set; }

    }

}
